<style>
    .new-form-control{
        margin-left: 10px;
        width: 200px;
        padding: 5px 10px;
        height: 30px;
        font-size: 12px;
        line-height: 1.5;
        border-radius: 3px;
        box-shadow: none;
        color: #555;
        background-color: #fff;
        background-image: none;
        border: 1px solid #ccc;
    }
</style>
<div class="box">
  <div class="box-header">
      
    <div class="row">
        <div class="col-sm-4">
            <ob_link><a class="btn" href="{:url('gameAdd')}"><i class="fa fa-plus"></i> 新 增</a></ob_link>
        </div>
        
        <div class="col-sm-8">
            <div class="box-tools search-form pull-right">
                <div class="input-group input-group-sm">
                    
                    <input type="text" name="search_data" style="width: 200px;" class="form-control pull-right" value="{:input('search_data')}" placeholder="支持名称">
                    <select name="category_id" class="new-form-control">
                        <option value="" >全部分类</option>
                        {volist name='game_category_list' id='vo'}
                        <option value="{$vo['id']}" {notempty name="param['category_id']"}{if condition="$param['category_id'] eq $vo['id']"} selected="selected" {/if}{/notempty} >{$vo['name']}</option>
                        {/volist}
                    </select>
                    <div class="input-group-btn">
                      <button type="button" id="search"  url="{:url('gameList')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>
                    </div>

                </div>
           </div>
        </div>
    </div>

  </div>
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
          <th class="checkbox-select-all">
              <label>
                <input class="flat-grey js-checkbox-all" type="checkbox">
              </label>
          </th>
          <th>游戏名称</th>
          <th>游戏分类</th>
          <th>游戏Log图</th>
          <th>游戏链接</th>
          <th>发布时间</th>
          <th class="status-th">是否展示应用商店</th>
          <th>操作</th>
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
                  <td>
                    <label>
                        <input class="flat-grey" type="checkbox" name="ids" value="{$vo.id}">
                    </label>
                  </td>
                  <td>{$vo.name}</td>
                    <td>{$vo.cate['name']}</td>
                    <td> <img class="admin-list-img-size" src="{$vo.cover_id|get_picture_url}"/></td>
                  <td>{$vo.url}</td>
              
                  <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>

                    <td><a class="ajax-get" href="javascript:;">
                        {if condition="$vo['is_index'] eq 1"}
                        <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'is_index' =>0))}">  <span class='badge bg-green'>置顶</span></a></ob_link>

                        {else/}
                        <ob_link><a class="ajax-get" href="{:url('update_info', array('id' => $vo['id'], 'is_index' => 1))}">  <span class='badge bg-red'>不置顶</span></a></ob_link>

                        {/if}
                    </a></td>
                  <td class="col-md-2 text-center">
                      <ob_link><a href="{:url('gameEdit', array('id' => $vo['id']))}" class="btn "><i class="fa fa-edit"></i> 编辑</a></ob_link>
                      <ob_link><a class="btn confirm ajax-get" href="{:url('setStatus', array('ids' => $vo['id'], 'status' => $Think.DATA_DELETE))}"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>
                  </td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="8" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
      

  </div>
  <div class="box-footer clearfix text-center">
      {$list->render()}
  </div>
</div>